{#if $invoices[id]?.status !== 'paid'}
Add a tip?
{tipAmountFormatted}
{`(${tipAmountSats} SATS)`}
{tipPercent}%
{ customTipAmount = ''; customInput.value = ''; tipPercent = e.target.value; }} />
{#each tipAmounts as amount}
handleTipButtonClick(amount)}>{amount}
{/each}
$
handleCustomTipAmount(e)} class="bg-primary rounded-2xl py-3 px-10 font-semibold mt-2 mr-1 w-full md:w-auto" placeholder="Other" />
(showMobileTip = false)}>Done
(showMobileTip = true)} disabled={showMobileTip} >
Add a tip
Scan to pay
{username}
Invoice
{invoiceAmountFiatFormatted}
{`(${amountFormatted} SATS)`}
Tip
{tipAmountFormatted}
{`(${tipAmountSats} SATS)`}
Total
{totalAmountFormatted}
{`(${totalAmountSats} SATS)`}
{:else}
Payment Successful!
{totalAmountFormatted} {$preferredCurrency}
({totalAmountSats} SATS)
Done
{/if}